package com.lc.common.annotation;

import com.lc.common.component.FeignInterceptor;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;


/**
 * 集成 feign 的 开关
 * 集成feign的请求头添加当前操作人的拦截器
 *
 * @author LingChou
 */
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(FeignInterceptor.class)
@EnableFeignClients
public @interface EnableFeign {
}
